package com.linesum.code.domain.mongodb.vo;

import java.io.Serializable;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 
 * @author chenzf
 * @date 2017年7月27日
 */
@Document(collection = "user")
public class UserVo implements Serializable {

	/***/
	private static final long serialVersionUID = 441054782093134210L;
	private Long id;
	private String name;
	private Integer age;

	public UserVo(Long id, String name, Integer age) {
		this.id = id;
		this.name = name;
		this.age = age;
	}

	@Id
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Field("name")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

}
